package com.chong.method;

public class Demo2 {
    public static void main(String[] args) {
        int c = max(10, 10);
        System.out.println("c:" + c);
    }

    public static int max(int a, int b) {

        int result = 0;

        if (a == b) {
            System.out.println("a和b相等");
            return 0;
        }
        if (a > b) {
            result = a;
        } else {
            result = b;
        }
        return result;
    }
}
